package com.pozu.new_retail.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pozu.new_retail.dao.mapper.ScoresRecordMapper;
import com.pozu.new_retail.dao.model.ScoresRecord;
import com.pozu.new_retail.service.ScoresRecordService;

@Service("scoresRecordService")
public class ScoresRecordServiceImpl implements ScoresRecordService {

	@Autowired
	private ScoresRecordMapper scoresRecordMapper;
	
	@Override
	public int saveScoresRecord(ScoresRecord scoresRecord) {
		
		scoresRecord.setCreatedTime(System.currentTimeMillis());
		
		return scoresRecordMapper.insertScoresRecord(scoresRecord);
	}

}
